package com.tiancikeji.zaoke.app.service.user;

import java.util.Date;

import com.tiancikeji.zaoke.app.model.user.User;

public interface UserService {

	public User getUserInfo(long userid);

	public User autoRegisterUser(String name);

	public boolean updateCardId(String cId, Double money, User user);

	public String getVerifyCode(String phone, User user);
	
	public long getExpireTime();

	public String addVerifyCode(String phone, User user);

	public User updateUserPhoneNPassword(String password, String phone, User user);

	public boolean checkPhone(String phone);

	public User getUserInfo(String phone, String password);

	public boolean updatePassword(String password, User user);

	public void updateUserOrder(long userId, Date orderTime, long zoneId, int payway);

	public boolean rename(String name, User user);

	public boolean addBalance(long userId, double money, double balance);

	public boolean addBalance(long userId, double salePrice);
}
